﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RKConsulting.Helpers
{
    public static class StringHelper
    {
        public static string InsertSpacesToCamelCaseString(string camelCaseString)
        {
            var str = new StringBuilder(camelCaseString[0].ToString());
            for (var i = 1; i < camelCaseString.Length; i++)
            {
                var c = camelCaseString[i];
                if (char.IsUpper(c))
                    str.Append(' ');

                str.Append(c);
            }

            return str.ToString();
        }
    }
}
